#include "vec4.h"

Vec4::Vec4(int x, int y, int w, int h)
	: x {x}, y {y}, w {w}, h {h}
{}

Vec4::Vec4(SDL_Texture *texture)
	: Vec4(0, 0, 0, 0)
{
	if (texture != nullptr) {
		int w, h;
		SDL_QueryTexture(texture, nullptr, nullptr, &w, &h);
		this->w = w;
		this->h = h;
	}
}